commit: Add --mode-ro-executables option
authorColin Walters <walters@verbum.org>
Wed, 6 May 2020 18:31:53 +0000 (18:31 +0000)
committerColin Walters <walters@verbum.org>
Wed, 6 May 2020 19:41:27 +0000 (19:41 +0000)
commit7392259332e00c33ed45b904deabde08f4da3e3c
treee74065e4ea3073881b60cb34bbecfcd6e98c4e6e
parentba874c525f9766b0fd9a8decefc7b628cfc71c7c
commit: Add --mode-ro-executables option

I think we should encourage removing the writable bits from
executables.  This has happened to me:
https://thomask.sdf.org/blog/2019/11/09/take-care-editing-bash-scripts.html

And not having the writable bit may help prevent hardlink
corruption with OSTree in some cases.

We can't do this by default, but add a convenient CLI flag
for it.
src/ostree/ot-builtin-commit.c
tests/basic-test.sh